<include file="__THEME__/header" />


<script type="text/javascript" src="../Public/Js/Common.js"></script>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>
<script>
	function manage(uid,op) {
		v_prompt = "";
		if(op == 'admin') {
			v_prompt = '你确定设置该用户成为管理员';
		}else if(op == 'normal'){
			v_prompt = '你确定设置该用户成为普通会员';
		}else if(op == 'out'){
			v_prompt = '你确定要剔除该用户';
		}else if(op == 'allow'){
			v_prompt = '你确定设置该用户成为该群组成员'
		}
		if(v_prompt.length){
			if (!confirm(v_prompt))
			{
				return;
			}
		}
		document.actionform.uid.value = uid;
		document.actionform.op.value = op;
		document.actionform.submit();
	}
</script>
</head>

<body>


<!-- 头部 end -->
<div class="content"><!-- 内容 begin  -->
  <!-- 用户组件列表 begin -->
   <include file="__THEME__/apps" />      
  <!-- 用户组件列表 end -->
  
  <div class="main"> <!-- 右侧内容 begin  -->
  
  <include file="../Public/manage_group_top" />
  
  <div class="MenuSub">
  	<if condition=" $type"><a href="__URL__/membermanage/gid/{$gid}" >所有成员</a> <else /> 所有成员</if>┊ 
  	<if condition=" $type neq 'apply' "><a href="__URL__/membermanage/gid/{$gid}/type/apply">申请加入的人</a>  <else /> 申请加入的人 </if>
  </div>
  
  
  <form method="post" name="actionform" action="__URL__/memberaction">
  	 	<input type="hidden" name="gid" value="{$gid}">
  	 	<input type="hidden" name="op" value="">
  	 	<input type="hidden" name="uid" value="">
  </form>
  <div class="groupBox">
  <div class="boxL" style="width:100%;">
    <div class="box1">
    	<ul class="memberlist">
          <li class="cGray2" style="height:20px">
          <div class="c1">名字</div><div class="c2">身份</div><div class="c3">操作</div>
          </li>
         <volist name="memberlist['data']" id="member">
          <li>
          <div class="c1"><span class="pic30 mr5"><img src="{$member['uid']|getUserFace}" width="30px" height="30px" /></span><a href="__TS__/space/{$member['uid']}">{$member['uid']|getUserName}</a></div>
          <div class="c2">
          	<eq name="member['level']" value="1">创建者</eq>
          	<eq name="member['level']" value="2">管理者</eq>
          	<eq name="member['level']" value="3">普通成员</eq>
          </div>
          
          <!--如果是成员-->	
         
          	<div class="c3">
          	<php>if($mid != $member['uid']){ </php>
          	
          		<php>if(iscreater($mid,$gid)) {</php>
          		<eq name="member['level']" value="3"><a href="javascript:manage({$member['uid']},'admin');">升为管理员</a></eq>
          		<eq name="member['level']" value="2"><a href="javascript:manage({$member['uid']},'normal');">降为普通成员</a>  </eq>
          		<a href="javascript:manage({$member['uid']},'out');">踢出本群</a>
       			<php>} elseif(isadmin($mid,$gid) && ismember($member['uid'],$gid)) {</php> 
          			<a href="javascript:manage({$member['uid']},'out');">踢出本群</a>
       			<php>} </php>
       		<php>}</php>
          </div>
         <div class="c"></div>
          <!--如果是成员-->	
          
          </li>
          </volist>
        </ul>
        <p>共{$memberlist['count']}名成员</p>
        <div class="page">{$memberlist['html']}</div>
    </div>
    
    </div>
  <!-- end  -->
  </div>  </div><!-- 右侧内容 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<include file="__THEME__/footer" />
</body>
</html>
